"""
 -*- coding: utf-8-*-
 @File: api_token.py
 @Author: chen
 @time: 2023/10/22/ 16:47
"""
from hogwartsHomework.homework_api_auto.dev.api_base import BaseApi


class Token(BaseApi):
    def __init__(self):
        self.param["corpid"] = "ww1f1efaf97c1a95ee"
        self.param["corpsecret"] = "vfM-YavW7atsZUkIt2IPAbygxrHfVoxHMlhe8jgpYkk"

    def get_token(self):
        path = "/cgi-bin/gettoken"
        resp = self.send_req("get", path)
        return resp.json()


if __name__ == '__main__':
    t0 = Token()
    t0.get_token()
